package com.xj.common.bussiness.deviceInformation.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.sql.Date;

import static org.springframework.format.annotation.DateTimeFormat.ISO.DATE;

/**
 * 上户表格中的所有字段映射
 */
@Data
@EqualsAndHashCode(callSuper=false)
public class DeviceInfoParamMould extends Model<DeviceInfoParamMould> {

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    private Integer id;
    /**
     * 表单状态
     */
    private String state;
    /**
     * 填表日期
     */
    @DateTimeFormat(iso = DATE)
    private Date createDate;
    /**
     * 出厂编号
     */
    private String factoryNum;
    /**
     * 设备牌编号
     */
    private String plateNum;

    private String identification;

    public Integer getId() {
        return id;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getFactoryNum() {
        return factoryNum;
    }

    public void setFactoryNum(String factoryNum) {
        this.factoryNum = factoryNum;
    }

    public String getPlateNum() {
        return plateNum;
    }

    public void setPlateNum(String plateNum) {
        this.plateNum = plateNum;
    }

    public String getIdentification() {
        return identification;
    }

    public void setIdentification(String identification) {
        this.identification = identification;
    }
}
